From f32cb04537695d91df0198360430aeae51a6bb3c Mon Sep 17 00:00:00 2001 From: alexmot Date: Wed, 3 Dec 2003 18:39:13 +0000 Subject: [PATCH] Add mag_cleanse() to route-point output. --- gpsbabel/magproto.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 07d4cdea6..e8d040ba6 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -1269,7 +1269,7 @@ mag_route_trl(const route_head * rte) waypoint *waypointp; char obuff[256]; char buff1[64], buff2[64]; - char *pbuff; + char *pbuff, *owpt; const char * icon_token; int i, numlines, thisline; @@ -1297,7 +1297,12 @@ mag_route_trl(const route_head * rte) else pbuff = buff2; - sprintf(pbuff, "%s,%s", waypointp->shortname, icon_token); + owpt = waypointp->shortname; + owpt = mag_cleanse(owpt); + + sprintf(pbuff, "%s,%s", owpt, icon_token); + + xfree(owpt); if ((tmp == &rte->waypoint_list) || ((i % 2) == 0)) { thisline++; -- 2.30.2